package vote.ai.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Schema(description = "本地文本纠错字典")
@TableName(value = "text_correction_dict", autoResultMap = true)
public class CorrectionDict implements Serializable {

    @Serial
    private final static long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "错误词句")
    private String errorWord;

    @Schema(description = "正确词句")
    private String correctWord;

    @Schema(description = "来源")
    private String source;

    private boolean enabled = false;

    @TableField(fill = FieldFill.INSERT)
    private long createdBy;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @Schema(description = "占位符")
    private String placeholder;

    @Schema(description = "是否是敏感词")
    private boolean hasSensitiveWord = false;
}
